package project.Domain;/*
 *  @Author Mr.long
 *  @QQ 1507468405
 *  @Creat 2021/10/26 - 11:25
 */

public class User {
    private Integer id;
    private String name;
    private String email;
    private String mobile;
    private String role;
    private String username;
    private String password;
    private Integer leaderID;

    public User(Integer id, String name, String email, String mobile, String role, String username, String password, Integer leaderID) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.mobile = mobile;
        this.role = role;
        this.username = username;
        this.password = password;
        this.leaderID = leaderID;
    }

    public int getLeaderID() {
        return leaderID==null?0:leaderID;
    }

    public void setLeaderID(Integer leaderID) {
        this.leaderID = leaderID;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "ID=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                ", role='" + role + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", leaderID='" + leaderID + '\'' +
                '}';
    }


    public int getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public User(Integer ID, String name, String email, String mobile, String role, String username, String password) {
        this.id = ID;
        this.name = name;
        this.email = email;
        this.mobile = mobile;
        this.role = role;
        this.username = username;
        this.password = password;
    }

    public User(String name, String email, String mobile, String role, String username, String password) {
        this.name = name;
        this.email = email;
        this.mobile = mobile;
        this.role = role;
        this.username = username;
        this.password = password;
    }
}
